package com.wanmait.wanmarecruit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
* Created by Mybatis Generator 2022/09/19
*/
@Data
@TableName(value = "login_log")
public class LoginLog implements Serializable {
    /**
     * 用户登录日志id
     */
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer userId;
    @TableField(exist = false)
    private User user;

    /**
     * 登入时间
     */
    @TableField(value = "input_time")
    private Date inputTime;

    /**
     * ip地址
     */
    @TableField(value = "ip")
    private String ip;

    private static final long serialVersionUID = 1L;

    public static final String COL_USER_ID = "user_id";

    public static final String COL_INPUT_TIME = "input_time";

    public static final String COL_IP = "ip";
}